package com.dynamic.data.permission.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 权限验证异常
 */
public class PermissionException extends RuntimeException {

    @Getter
    @Setter
    private String uid;

    @Getter
    @Setter
    private String method;

    @Getter
    @Setter
    private String url;

    public PermissionException(String message, String uid, String method, String url) {
        super(message);

        this.uid = uid;
        this.method = method;
        this.url = url;
    }

    public PermissionException(String message) {
        super(message);
    }

    public PermissionException(String message, Throwable cause) {
        super(message, cause);
    }
}
